import 'element-plus/dist/index.css'
import "virtual:svg-icons-register"

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import {createPinia} from 'pinia'
import { createApp } from 'vue'
import './assets/fonts/demo.css'
import 'style/index.scss'
import 'style/el-table.scss'
import App from './App.vue'
import router from '@/router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import vAuth from './direct/vAuth'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia)

app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
  })
  // app.directive('auth',vAuth)
app.mount('#app')
